#-------------------------------------------------
#
# Project created by QtCreator 2013-05-01T17:55:32
#
#-------------------------------------------------

cache()

QT       +=  xml enginio
CONFIG   += debug

QXT += core gui

macx {
       QMAKE_INFO_PLIST = Info.plist
       ICON = mad.icns
     }

lessThan(QT_MAJOR_VERSION, 5): QT += webkit core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webkitwidgets

TARGET = MacsurAdapter
TEMPLATE = app

include(common/backendhelper/backendhelper.pri)

SOURCES += \
    main.cpp \
    madmainwindow.cpp \
    lib/madmodel.cpp \
    lib/madutils.cpp \
    gui/maddataclassification.cpp \
    lib/maddata.cpp \
    lib/madserialisable.cpp \
    lib/madguid.cpp \
    gui/madtextdisplayform.cpp \
    lib/dataclassification/madsubcategory.cpp \
    lib/dataclassification/statevars/madstatevars.cpp \
    lib/dataclassification/statevars/madsvsoil.cpp \
    lib/dataclassification/statevars/madsvcrop.cpp \
    lib/dataclassification/statevars/madsvsurfacefluxes.cpp \
    lib/dataclassification/statevars/madsvobservations.cpp \
    lib/dataclassification/maddataclassificationmanagement.cpp \
    lib/dataclassification/maddataclassificationphenology.cpp \
    lib/dataclassification/maddataclassificationprevcrop.cpp \
    lib/dataclassification/maddataclassificationinitialvalues.cpp \
    lib/dataclassification/maddataclassificationsoil.cpp \
    lib/dataclassification/maddataclassificationsitedata.cpp \
    lib/dataclassification/maddataclassificationweather.cpp \
    lib/maddataset.cpp \
    gui/madlogindialog.cpp \
    gui/madvariablemanager.cpp \
    gui/madcsvreader.cpp \
    gui/madmodelmanager.cpp \
    lib/madscenario.cpp \
    gui/madscenariomanager.cpp \
    gui/madmodeldetails.cpp \
    gui/madmodelinputparameters.cpp

HEADERS  += \
    madmainwindow.h \
    lib/madmodel.h \
    lib/mad.h \
    lib/maddata.h \
    lib/maddataset.h \
    lib/madguid.h \
    lib/madserialisable.h \
    lib/madutils.h \
    lib/madversion.h \
    lib/dataclassification/maddataclassificationinitialvalues.h \
    lib/dataclassification/maddataclassificationmanagement.h \
    lib/dataclassification/maddataclassificationphenology.h \
    lib/dataclassification/maddataclassificationprevcrop.h \
    lib/dataclassification/maddataclassificationsitedata.h \
    lib/dataclassification/maddataclassificationsoil.h \
    lib/dataclassification/maddataclassificationweather.h \
    lib/dataclassification/madsubcategory.h \
    lib/dataclassification/statevars/madstatevars.h \
    lib/dataclassification/statevars/madsvcrop.h \
    lib/dataclassification/statevars/madsvsoil.h \
    lib/dataclassification/statevars/madsvsurfacefluxes.h \
    lib/dataclassification/statevars/madsvobservations.h \
    gui/madcsvreader.h \
    gui/maddataclassification.h \
    gui/madlogindialog.h \
    gui/madmodelmanager.h \
    gui/madscenariomanager.h \
    gui/madtextdisplayform.h \
    gui/madvariablemanager.h \
    lib/madscenario.h \
    lib/overloads.h \
    gui/madmodeldetails.h \
    gui/madmodelinputparameters.h

FORMS    += \
    madmainwindowbase.ui \
    gui/maddataclassificationbase.ui \
    gui/madtextdisplayformbase.ui \
    gui/madvariablemanagerbase.ui \
    gui/madcsvreaderbase.ui \
    gui/madmodelmanagerbase.ui \
    gui/madscenariomanagerbase.ui \
    gui/madmodeldetailsbase.ui \
    gui/madmodelinputparametersbase.ui

RESOURCES += \
    resources/resources.qrc

OTHER_FILES += \
    README.txt \
    resources/about.txt \
    resources/cropm.txt \
    resources/livem.txt \
    resources/tradem.txt \
    CMakeLists.txt \
    notes.txt \
    CMake/Modules/FindQxt.cmake
